@import "../variable";

@keyframes warn {
  0% {
    transform: scale(0.3);
    -webkit-transform: scale(0.3);
    opacity: 0.0;
  }
  25% {
    transform: scale(0.3);
    -webkit-transform: scale(0.3);
    opacity: 0.1;
  }
  50% {
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    opacity: 0.3;
  }
  75% {
    transform: scale(0.8);
    -webkit-transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    -webkit-transform: scale(1);
    opacity: 0.0;
  }
}

@keyframes warn1 {
  0% {
    transform: scale(0.3);
    -webkit-transform: scale(0.3);
    opacity: 0.0;
  }
  25% {
    transform: scale(0.3);
    -webkit-transform: scale(0.3);
    opacity: 0.1;
  }
  50% {
    transform: scale(0.3);
    -webkit-transform: scale(0.3);
    opacity: 0.3;
  }
  75% {
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.8);
    -webkit-transform: scale(0.8);
    opacity: 0.0;
  }
}

@-webkit-keyframes warn {
  0% {
    transform: scale(0);
    -webkit-transform: scale(0);
    opacity: 0.0;
  }
  25% {
    transform: scale(0);
    -webkit-transform: scale(0);
    opacity: 0.1;
  }
  50% {
    transform: scale(0.1);
    -webkit-transform: scale(0.1);
    opacity: 0.3;
  }
  75% {
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    -webkit-transform: scale(1);
    opacity: 0.0;
  }
}

.bubble {
  left: 43%;
  top: 38%;
  width: 40px;
  height: 40px;
  z-index: 1;
  .dot {
    color: @defultColor;
    width: 50px;
    height: 50px;
    line-height: 50px;
    left: 138px;
    top: 135px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    background: @orangeBg;
    border-radius: 50%;
    z-index: 2;
  }

  .pulse {
    width: 320px;
    height: 320px;
    left: 2px;
    top: 2px;
    border: 6px solid @orangeBg;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    -webkit-animation: warn 2s ease-out;
    -moz-animation: warn 2s ease-out;
    animation: warn 2s ease-out;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    box-shadow: 1px 1px 30px @orangeBg;
    &.pulse1 {
      -webkit-animation: warn1 2s ease-out;
      -moz-animation: warn1 2s ease-out;
      animation: warn1 2s ease-out;
      -webkit-animation-iteration-count: infinite;
      -moz-animation-iteration-count: infinite;
      animation-iteration-count: infinite;
      box-shadow: 1px 1px 30px @orangeBg;
    }
  }
}